<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改股票日行情')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-day-edit" th:object="${stockDaily}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">ts股票代码：</label>
                <div class="col-sm-8">
                    <input name="tsCode" th:field="*{tsCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">交易日期：</label>
                <div class="col-sm-8">
                    <input name="tradeDate" th:field="*{tradeDate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">开盘价：</label>
                <div class="col-sm-8">
                    <input name="opened" th:field="*{opened}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">最高价：</label>
                <div class="col-sm-8">
                    <input name="high" th:field="*{high}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">最低价：</label>
                <div class="col-sm-8">
                    <input name="low" th:field="*{low}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">收盘价：</label>
                <div class="col-sm-8">
                    <input name="closed" th:field="*{closed}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">昨收价：</label>
                <div class="col-sm-8">
                    <input name="preClosed" th:field="*{preClosed}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">涨跌额：</label>
                <div class="col-sm-8">
                    <input name="changed" th:field="*{changed}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">涨跌幅：</label>
                <div class="col-sm-8">
                    <input name="pctChg" th:field="*{pctChg}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">成交量/手：</label>
                <div class="col-sm-8">
                    <input name="vol" th:field="*{vol}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">成交额/千元：</label>
                <div class="col-sm-8">
                    <input name="amount" th:field="*{amount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">换手率：</label>
                <div class="col-sm-8">
                    <input name="turnoverRate" th:field="*{turnoverRate}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "finance/day";
        $("#form-day-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-day-edit').serialize());
            }
        }
    </script>
</body>
</html>
